//package net.jsoft.pms.config.datasource;
//
//import javax.sql.DataSource;
//
//import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.context.annotation.Primary;
//
//@Configuration
//public class DataSourceConfig
//{
//
//    @Bean(name = "mysqlDS")
//    @Primary // 默认数据源
//    @ConfigurationProperties(prefix = "datasource.mysql")
//    public DataSource mysqlDataSource()
//    {
//        return DataSourceBuilder.create().build();
//    }
//
//    @Bean(name = "oracleDS")
//    @ConfigurationProperties(prefix = "datasource.oracle")
//    public DataSource oracleDataSource()
//    {
//        return DataSourceBuilder.create().build();
//    }
//}